import { getRequest } from "@/utils/request";
import { postRequest } from "@/utils/request";
/**
 * 获取性别
 */
export function getSexApi() {
    return getRequest(
        "/common/getSex"
    );
}
/**
 * 获取状态
 */
export function getStatusApi() {
    return getRequest(
        "/common/getStatus"
    );
}

/**
 * 获取系统内置角色
 */
export function getRoleApi() {
  return getRequest(
   "/common/getRole"
  );
}

/**
 * 获取系统内置角色
 */
 export function getIndustryApi() {
  return getRequest(
   "/common/getIndustry"
  );
}

/**
 * 获取系统内置角色
 */
 export function getTypeApi() {
  return getRequest(
   "/common/getType"
  );
}


/**
 * 上传文件
 */
 export function uploadApi(data) {
  return postRequest(
   "/file/upload",
   data
  );
}

/**
 * 下载文件
 */
 export function downloadFileApid(fileName) {
  return getRequest(
   "/file/downloadFile/"+fileName,
  );
}
